using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CenterAgent : MonoBehaviour
{
    // Start is called before the first frame update
    [SerializeField]
    GameObject[] centers;

    [SerializeField]
    float speed;

    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        for (int i = 0; i < centers.Length; i++) {
            var angels = centers[i].transform.localEulerAngles;
            angels.y += speed * Time.deltaTime;
            //rotation = rotation + 
            centers[i].transform.localEulerAngles = angels;
        }
        
    }
}
